


<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head><title>

</title><link href='./home/css/etm.css' rel='stylesheet' type='text/css' /><!--[if IE 8]> <link href='/Themes/Theme3/ie8Fix.css' rel='stylesheet' /> <![endif]-->

    <script src="./home/js/jquery-1.4.2.min.js" type="text/javascript"></script>
    <script src="./home/js/flexigrid.js"></script>
    <script src="./home/js/jQuery.Ex.js"></script>
    <script src="./home/js/DatePicker/WdatePicker.js"></script>
    <meta http-equiv="X-UA-Compatible" content="IE=11; IE=10; IE=9; IE=8; IE=7; IE=EDGE"/><script src='./home/js/jquery.nicescroll.min.js' type='text/javascript'></script><script type='text/javascript'>var isEtmClient=false;function ReSizeScrollbar() { if ($('form').getNiceScroll().length > 0) {     $('form').getNiceScroll().onResize();}}function ReSizeFlexgridScrollbar() { if ($('.bDiv').getNiceScroll().length > 0) {     $('.bDiv').getNiceScroll().onResize();}}function InitFlexgridScrollbar(){     $('.bDiv').niceScroll({cursorcolor: '#75A801',zindex:4});}function ReSizenDivScrollbar() { if ($('.flexigrid .nDiv').getNiceScroll().length > 0) {     $('.flexigrid .nDiv').getNiceScroll().onResize();}}function InitnDivScrollbar(){     $('.flexigrid .nDiv').niceScroll({cursorcolor: '#75A801',horizrailenabled:false});}function proxyExecuteFun(funName) {if(funName == undefined || funName==null|| funName.length==0){window.parent.showsending(true, "执行中，请耐心等待");setTimeout(function() { window.parent.showsending(false); }, 5000);return;}  if (window[funName]()) {window.parent.showsending(true, "执行中，请耐心等待");setTimeout(function() { window.parent.showsending(false); }, 5000);return true; } return false; };var _tmpOnSelectedFile = null;function onSelectedFile(fileName, fileUrl, isImg) {   if (_tmpOnSelectedFile != null) {        _tmpOnSelectedFile(fileName, fileUrl, isImg);    }}function showFileList(callback) {   window.parent.showDialog('查看素材库', '/Modules/OA/CMyFileListView.aspx?navId=ce3054bf-b434-44c0-b391-ec628c2a4447', '900px', '450px');   _tmpOnSelectedFile = callback;}$(function () {if (navigator.userAgent.toLowerCase().indexOf('edge/') != -1) { $('input[type=submit],.tmpSubmitButton').bind({ mouseenter: function () { $(this).addClass('tmpSubmitButton'); $(this).prop('type', 'button'); }, mouseleave: function () { $(this).removeClass('tmpSubmitButton'); $(this).prop('type', 'submit'); }, click: function () { $(this).removeClass('tmpSubmitButton'); $(this).prop('type', 'submit'); } }); }if (window.parent != undefined && window.parent != null && typeof window.parent.showsending != "undefined") { window.parent.showsending(false, ''); }$(".button").each(function() { if ($(this).attr("type") == "submit" &&!$(this).hasClass('noloading') && window.parent != undefined && window.parent != null && typeof window.parent.showsending != "undefined") { var tmpClick = $(this).attr("onclick");if(tmpClick == undefined || tmpClick==null|| tmpClick.length<2){ $(this).attr("onclick","proxyExecuteFun();");return;}  if (tmpClick.indexOf("return ") != -1 && tmpClick.indexOf("(") != -1) { tmpClick = tmpClick.substring(7).replace(/\s+/g, ''); if (tmpClick.indexOf("()") != -1) { var funName = tmpClick.substring(0, tmpClick.indexOf("(")); $(this).attr("onclick","return proxyExecuteFun('" + funName + "');"); } } } });$('body').click(function() {     if (typeof parent.onChildPageClick !='undefined') {         parent.onChildPageClick();     }});     $('form').height($(window).height()-0).niceScroll({cursorcolor: '#75A801',horizrailenabled:false });     $(window).resize(function () {         ReSizeScrollbar();     });});</script>
    <script type="text/javascript">
        $(function () {
            $("#divList").niceScroll({ cursorcolor: '#75A801' });
            $(".StuentAmount").live("change", function () {

                var value = $(this).parent().parent().children().eq(0).find("input").eq(0).val();
                var dis = $(this).val();
                if (isNaN(dis)) {
                    dis = "0.00";
                }
                var tt;
                if ($("#hfStaffInfo1s").val() != "") {
                    jsonItemList = jQuery.parseJSON($("#hfStaffInfo1s").val());
                    for (i = 0; i < jsonItemList.length; i++) {
                        if (jsonItemList[i].MaterialGuid.toLocaleLowerCase() == value.toLocaleLowerCase()) {
                            jsonItemList[i].StudentAmount = dis;
                            jsonItemList[i].TotalAmount = (Number(jsonItemList[i].StudentAmount) + Number(jsonItemList[i].TeacherAmount)).toFixed(2);
                            tt = jsonItemList[i].TotalAmount;
                        }
                    }
                    $("#hfStaffInfo1s").val(JSON.stringify(jsonItemList));
                    $(this).val(Number(dis).toFixed(2));
                    $(this).parent().parent().children().eq(3).html(tt);
                }
            });
            $(".TeacherAmount").live("change", function () {
                var value = $(this).parent().parent().children().eq(0).find("input").eq(0).val();
                var dis = $(this).val();
                if (isNaN(dis)) {
                    dis = "0.00";
                }

                var tt = 0;
                if ($("#hfStaffInfo1s").val() != "") {
                    jsonItemList = jQuery.parseJSON($("#hfStaffInfo1s").val());
                    for (i = 0; i < jsonItemList.length; i++) {
                        if (jsonItemList[i].MaterialGuid.toLocaleLowerCase() == value.toLocaleLowerCase()) {
                            jsonItemList[i].TeacherAmount = dis;
                            jsonItemList[i].TotalAmount = (Number(jsonItemList[i].StudentAmount) + Number(jsonItemList[i].TeacherAmount)).toFixed(2);
                            tt = jsonItemList[i].TotalAmount;
                        }
                    }
                    $("#hfStaffInfo1s").val(JSON.stringify(jsonItemList));
                    $(this).val(Number(dis).toFixed(2));
                    $(this).parent().parent().children().eq(3).html(tt);
                }
            });
        });


        function ResetData() {
            if (confirm('确定要重置吗？')) {
                return true;
            }
            else {
                return false;
            }
        }

        function Save() {
            if ($("#hfStaffInfo1s").val() == "") {
                alert("暂无数据保存");
                return false;
            }
            else {
                return true;
            }
        }

    </script>
</head>
<body>
    <form method="post" action="DateMaterialList.aspx?navId=ce3054bf-b434-44c0-b391-ec628c2a4447" id="form1">
<div class="aspNetHidden">
<input type="hidden" name="__EVENTTARGET" id="__EVENTTARGET" value="" />
<input type="hidden" name="__EVENTARGUMENT" id="__EVENTARGUMENT" value="" />
<input type="hidden" name="__LASTFOCUS" id="__LASTFOCUS" value="" />
<input type="hidden" name="__VIEWSTATE" id="__VIEWSTATE" value="/wEPDwULLTE4MjAzNTcwODUPZBYCAgMPZBYKAgcPDxYCHgRUZXh0BQoyMDE3LTAzLTEwZGQCCw8PFgIeB1Zpc2libGVoZGQCDQ8PFgIfAWhkZAIPDw8WAh8BZ2RkAhEPDxYCHwFoZBYCAgEPFgIfAGVkZOoTHPGle9sBVc7Mruyn84XQ0p9p5RzgksPMiz/BeM2h" />
</div>

<script type="text/javascript">
//<![CDATA[
var theForm = document.forms['form1'];
if (!theForm) {
    theForm = document.form1;
}
function __doPostBack(eventTarget, eventArgument) {
    if (!theForm.onsubmit || (theForm.onsubmit() != false)) {
        theForm.__EVENTTARGET.value = eventTarget;
        theForm.__EVENTARGUMENT.value = eventArgument;
        theForm.submit();
    }
}
//]]>
</script>


<script src="/WebResource.axd?d=vNXb2FjjBPDATZ87O7vB1EA20K3bJS97r3quTp7s1g--mTbiXb4Dqi8IBF662E113L2b8N9dHrk4OapqfOdTg-T0wl9UC9E6ap1fTvYe_HA1&amp;t=635375563334701695" type="text/javascript"></script>

<div class="aspNetHidden">

	<input type="hidden" name="__VIEWSTATEGENERATOR" id="__VIEWSTATEGENERATOR" value="707647BB" />
	<input type="hidden" name="__EVENTVALIDATION" id="__EVENTVALIDATION" value="/wEdAAVU3WEoE9ltDHEfypoBGHeOd/Rba84WOednbamt+JaWRdh1ADSe+OfCnEWVcQ1opIsdL4O0wokiS7xLYpKD+x65tuo+c4e3SAwQwguTRAjpe7sOHnetd1ppfj0oaEJZgiKoaxcbT9SRYWxQFHPD8BUB" />
</div>
        <input type="hidden" name="hfStaffInfo1s" id="hfStaffInfo1s" />
        <input type="hidden" name="hfTeacherCount" id="hfTeacherCount" />
        <input type="hidden" name="hfStudentCount" id="hfStudentCount" />
        <table class="search">
            <tr>
                <td class="textAlignRight" style="width: 54px;">日期：</td>
                <td class="borderRight" style="width: 100px;">
                    <input name="tbPlanDate" type="text" value="2017-03-10" onchange="javascript:setTimeout(&#39;__doPostBack(\&#39;tbPlanDate\&#39;,\&#39;\&#39;)&#39;, 0)" onkeypress="if (WebForm_TextBoxKeyHandler(event) == false) return false;" id="tbPlanDate" class="int" onfocus="WdatePicker({dateFmt:&#39;yyyy-MM-dd&#39;,onpicked:function(dp){pickedFunc(dp.cal.getNewDateStr());}})" style="width:80px;text-align: center" />
                </td>
                <td style="padding-left: 20px;">
                    
                    &nbsp;
                
                    &nbsp;
                
                </td>
            </tr>
        </table>
        <div id="P_NoData" class="nodata">
	
            <img src="./home/images/none.gif" />
            暂无相关数据...
        
</div>
        
    </form>
</body>
</html>
